/**
 * 快捷支付绑定推荐关系
 */
import * as client from './client'
import urlConfig from './urlConfig'

export class BindingReferralRst
{
    public salesOutletUID?:string;
}

export class BindingReferralRpn
{
    // public referralUserHeadPortraitURL?:string;
    // public referralUserName?:string;
    // public referralUserCode?:string;
    // public isGetVouchers?:boolean;
    // public vouchersAmount?:number;
    //是否成功（1=>成功）
    public isSuccess: number;
    //状态码？
    public code: string;
    //描述
    public description: string;
    //返回数据
    public resData: boolean;
}
/**
 * 获取数据
 * @param rst 参数
 */
export async function exec(rst: BindingReferralRst,userInfo:any) {
    const data = await client.exec(urlConfig.bindingReferral, rst,userInfo);
    return JSON.parse(data) as BindingReferralRpn;
}